home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / read-shift / How To (read) next >
Encoding:
Text File  |  1994-09-15  |  739 b   |  26 lines  |  [TEXT/ttxt]

  1. How To
  2. =======
  3.  
  4. To use this command, drop the "read" file into your nShell "bin" directory.
  5.  
  6. Description
  7. ==========
  8.  
  9. read - read input and store in shell variables
  10.  
  11. SYNOPSIS
  12.  
  13. read variable [variable...]
  14.  
  15. DESCRIPTION
  16.  
  17. This command  collects input strings and stores them in shell variables.  If more than one variable is used, the first word of input will go in the first variable, and so on.  All remaining characters will go in the last variable listed.  Quoted strings are considered to be a single "word", and will go together into a shell variable.
  18.  
  19. This routine collects data from a single line, and terminates when a ^D or Return is encountered.
  20.  
  21. RETURN CODES
  22.  
  23. <0 Error
  24. 0  Variables were filled
  25. 1  ^D was encountered before any data
  26.